package com.tencent.welink.api.video;

import com.tencent.welink.api.OpenApiTokenChange;
import com.tencent.welink.api.base.WelinkOpenApi;
import com.tencent.welink.config.BussinessConfig;
import com.tencent.welink.util.CrontabUtil;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import java.util.Map;

/**
 * desc:查询SHARP协议视频推流服务器信息
 * Created by junchihe on 2020/6/4.
 */
public class GetStreamServer extends WelinkOpenApi {
    private static final Logger log = LogManager.getLogger(GetStreamServer.class);

    public GetStreamServer() {
        ///common/video/getStreamServerV2
        ///common/video/getStreamServer
        super("/common/video/getStreamServer", true);
    }

    @Override
    public void displayResult(String result) {

    }

    public static void main(String[] args) {
        new BussinessConfig();
        CrontabUtil.addTaskInRate(new OpenApiTokenChange(), BussinessConfig.loginDurationMinutes, true);
        GetStreamServer getStreamServer = new GetStreamServer();
        Map<String, Object> map = getStreamServer.getExtendsPara();

        map.put("din", "300000000000070688");
        map.put("streamId",0);


        getStreamServer.DoHttp();
        CrontabUtil.shutdown();
    }
}